//
//  Graphics.h
//  Sinnca Engine v2
//
//  Created by Ryan Oldis on 6/14/11.
//  Copyright 2011 Sinnca Studios. All rights reserved.
//

#include "global.h"


enum renderApi {
	opengl,
	software
	};

#define Graphics (graphics::Instance())
class graphics
{
	
	int resW, resH;
	
	int fullscreen;
	//bool currentPers;
	
public:
	
	// std::vector<renderObj> renderQueue;
	
	SDL_Surface *gScreen;
	
	static graphics* Instance();
	
	void createSurface();
	
	void init();
	void reshape();
	
	void axisWidget(float size);
	void referenceGrid(int x, int y, float size);
	
	void render();
	
	int getResX();
	int getResY();
	
protected:
	
	graphics();
	
	static graphics* _instance;
	
};